package com.lanxin.oa.qx.dao;

import com.lanxin.base.BaseDao;
import com.lanxin.bean.QxFunction;
import com.lanxin.bean.QxRole;
import com.lanxin.bean.ZzEmployee;
import com.lanxin.util.PageBean;

import java.util.List;

public interface QxroleDao extends BaseDao {

    //查询角色表
    public PageBean<QxRole> selectRole(Integer page, Integer pageSize);

    //通过id查询
    public QxRole selectByIdRole(Integer oid);

    //通过条件查询
    public PageBean<QxRole> pageRole(Integer page, Integer pageSize, String roleName);

    //查询第三方表
    public QxRole selectRoleUser(Integer oid);

    //通过id查询员工表
    public ZzEmployee selectEmp(String oid);

    //查询权限表
    public List<QxFunction> functions();

    //通过id查询权限表
    public QxFunction selectFunction(String oid);

    //查询我的权限
    public List<ZzEmployee> myFunctions(Integer eid);

    public List<QxRole> selectRole(Integer oid);

}
